<%@ include file="/taglibs.jsp"%>

<title>Winter War Administration - Conventions</title>

<button onclick="location.href='convention.do?method=edit'">Add Convention</button>

<table class="list">
	<thead>
		<tr>
			<th><bean:message key="convention.conName"/></th>
			<th><bean:message key="convention.events"/></th>
			<th><bean:message key="convention.registration"/></th>
			<th><bean:message key="convention.eventSubmissionOpen"/></th>
			<th><bean:message key="convention.eventRegistrationOpen"/></th>
		</tr>
	</thead>
	<tbody>
		<c:forEach var="convention" items="${conventions}" varStatus="status">
			<c:choose>
				<c:when test="${status.count % 2 == 0}"><tr class="even"></c:when>
				<c:otherwise><tr class="odd"></c:otherwise>
			</c:choose>
				<td><a href="convention.do?method=edit&amp;conID=${convention.conID}">${convention.conName}</a></td>
				<td>${convention.numEvents}</td>
				<td>${convention.numRegistrations}</td>
				<td>${convention.eventSubmissionOpen}</td>
				<td>${convention.eventRegistrationOpen}</td>
			</tr>
		</c:forEach>
	</tbody>
</table>